package com.ruoyi.web.controller.ui;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.utils.Cascader;
import com.ruoyi.system.service.IQtCourseService;
import com.ruoyi.system.service.IQtOptionService;
import com.ruoyi.system.service.IQtTkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/exam/course")
public class CourseContoller extends BaseController {
    @Autowired
    private IQtCourseService qtCourseService;
    @Autowired
    private IQtTkService qtTkService;
    @Autowired
    IQtOptionService iQtOptionService;
    /**
     * 获取二级级联数据
     */
    @GetMapping("/cascade")
    public List<Cascader> cascade2()
    {
        return qtTkService.getCascader2();
    }
}
